package com.chaber.containers.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import com.chaber.containers.aspects.EntityPersistenceAspect;
import com.chaber.containers.aspects.MessagePublisherAspect;

@Configuration
@EnableAspectJAutoProxy
public class AspectsConfigurator {

	@Bean
	public MessagePublisherAspect messagePublisherAspect() {
		return new MessagePublisherAspect();
	}
	
	@Bean
	public EntityPersistenceAspect entityPersistenceAspect() {
		return new EntityPersistenceAspect();
	}
	
}
